package me.zhengjie.exercise.service;

import me.zhengjie.exercise.entity.ExerciseUser;
import me.zhengjie.exercise.vo.ExerciseUserSearchVO;
import me.zhengjie.exercise.vo.ExerciseUserVO;
import org.springframework.data.domain.Pageable;

import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * @author wanggang
 */
public interface ExerciseUserService {

    /**
     * 查找单个
     *
     * @param id id
     * @return /
     */
    ExerciseUserVO findOne(Long id);

    /**
     * 分页查询
     *
     * @param criteria 条件
     * @param pageable 分页参数
     * @return /
     */
    Map<String, Object> queryAll(ExerciseUserSearchVO criteria, Pageable pageable);

    /**
     * 查询全部数据
     *
     * @param searchVO /
     * @return /
     */
    List<ExerciseUserVO> queryAll(ExerciseUserSearchVO searchVO);

    /**
     * 创建
     *
     * @param resources /
     * @return /
     */
    ExerciseUser create(ExerciseUser resources);

    /**
     * 编辑
     *
     * @param resources /
     */
    ExerciseUser update(ExerciseUser resources);

    /**
     * 删除
     *
     * @param ids /
     */
    void delete(Set<Long> ids);

    List<ExerciseUser> searchJpaTest();

}
